<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp" %>
<!DOCTYPE HTML>
<html>
	<head>
		<%@ include file="/common/include/title.jsp" %>
		<link href="${rootPath }/common/resource/H-ui.admin/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
		
		<title>商品更新 - 景航电商</title>
		<meta name="keywords"
			content="登陆 景航电商">
		<meta name="description"
			content="登陆 景航电商">
	</head>
	<body>
		<nav class="breadcrumb">
			<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>
			商品管理 <span class="c-gray en">&gt;</span> 商品更新 <a
				class="btn btn-success radius r"
				style="line-height: 1.6em; margin-top: 3px"
				href="javascript:location.replace(location.href);" title="刷新"><i
				class="Hui-iconfont">&#xe68f;</i></a>
		</nav>
		<article class="page-container">
			<form action="${rootPath}/back/goods/goodsUpdateSubmit.htm" method="post" class="form form-horizontal"
				id="form-member-add">
				<input type="hidden" name="id" value="${requestScope.goods.id }">
				
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>分类：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						<%-- <input type="text" class="input-text" name="cateId" id="cateId" value="${requestScope.goods.cateId }" placeholder="请输入分类"> --%>
						<span class="select-box inline">
							<select name="cateId" class="select">
								<c:forEach items="${requestScope.cateList }" var="cate" varStatus="stat">
									<option value="${cate.id }" ${requestScope.goods.cateId == cate.id  ? 'selected' : ''} ${cate.leafStatus == '0'  ? 'disabled' : ''}><%-- ${stat.count}、${cate.name }、 --%>${cate.treeName }-->${cate.leafStatus }</option>
								</c:forEach>
							</select>
						</span>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>品牌：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						<%-- <input type="text" class="input-text" name="brandId" id="brandId" value="${requestScope.goods.brandId }" placeholder="请输入品牌"> --%>
						<span class="select-box inline">
							<select name="brandId" class="select">
								<c:forEach items="${requestScope.brandList }" var="brand" varStatus="stat">
									<option value="${brand.id }" ${requestScope.goods.brandId == brand.id  ? 'selected' : ''}>${stat.count}、${brand.name }</option>
								</c:forEach>
							</select>
						</span>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>名字：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" name="name" id="name" value="${requestScope.goods.name }" placeholder="请输入名字">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>标题：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" name="title" id="title" value="${requestScope.goods.title }" placeholder="请输入标题">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>url：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" name="url" id="url" value="${requestScope.goods.url }" placeholder="请输入url">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>重量：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" name="weight" id="weight" value="${requestScope.goods.weight }" placeholder="请输入重量">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>库存量：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" name="remainNum" id="remainNum" value="${requestScope.goods.remainNum }" placeholder="请输入库存量">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>市场价：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" name="marketPrice" id="marketPrice" value="${requestScope.goods.marketPrice }" placeholder="请输入市场价">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>折扣价：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" name="price" id="price" value="${requestScope.goods.price }" placeholder="请输入折扣价">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>发布时间：
					</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						<input type="text" class="input-text"  name="pubTimeStr" value="<fmt:formatDate value="${requestScope.goods.pubTime }" pattern="yyyy-MM-dd HH:mm:ss"/>" 
							placeholder="请输入发布时间" readonly="readonly" 
							onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>状态：
					</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						<div class="radio-box">
							<label>
								<input type="radio" name="status" value="0" ${requestScope.goods.status == '0' ? 'checked': ''}>禁用
							</label>
						</div>
						<div class="radio-box">
							<label>
								<input type="radio" name="status" value="1" ${requestScope.goods.status == '1' ? 'checked': ''}>启用
							</label>
						</div>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">内容：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${requestScope.goods.content}
					</div>
				</div>
				<div class="row cl">
					<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
						<input class="btn btn-primary radius" type="submit"
							value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
					</div>
				</div>
			</form>
		</article>
		<%@ include file="/common/include/footer.jsp" %>
	</body>
</html>